/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MainApplication.java
 *
 * Created on Mar 14, 2011, 9:29:00 PM
 */

package GUI;

import Business.AdminManage;
import Business.BoothEmployeeManage;
import Business.BoothManage;
import Business.BoothProductManage;
import Business.ExhibitorManage;
import Entities.Administrator;
import Entities.BoothInformation;
import Entities.BoothProduct;
import Entities.BoothEmployee;
import TableModels.AdminTableModel;
import TableModels.BoothTableModel;
import TableModels.BoothEmployeeTableModel;
import TableModels.ExhibitorTableModel;
import TableModels.ProductTableModel;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author Nhit
 */
public class MainApplication extends javax.swing.JFrame {
    private String usetType="Administrator";
    /** Creates new form MainApplication */
    public MainApplication(String userType) {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(MainApplication.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(MainApplication.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(MainApplication.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(MainApplication.class.getName()).log(Level.SEVERE, null, ex);
        }
        initComponents();
        if(userType.equalsIgnoreCase("Admin")){
            this.usetType = userType;
            taskbarTabbedPane.remove(AccountManageTabbedPane);
            //taskbarTabbedPane.remove(desktopTabbedPane);
        }
        idSelectedExhibitor = 0;
        idSelectedProduct = 0;
        nameSelectedExhibitor= "";
        this.setLocationRelativeTo(null);
        
        loadPages(0, 25);
        setNumberPages();
              
    }
    private void BoothTale(){
        BoothManage objBooth=new BoothManage();
        BoothModel=new BoothTableModel(objBooth.GetListBooth());
        tbBooth.setModel(BoothModel);

     }
     private void AccountTable(){
            AdminManage admin=new AdminManage();
            AdminModel=new AdminTableModel(admin.GetListAccount());
            tbAccountManager.setModel(AdminModel);

    }
     private void BoothEmployeeTable()
    {
         BoothEmployeeManage objManage=new BoothEmployeeManage();
         EmpTableModel=new BoothEmployeeTableModel(objManage.GetListBoothEmployee());
         tbEmployee.setModel(EmpTableModel);

    }
    private void setNumberPages(){
        BoothProductManage objProductManage = new BoothProductManage();
        int maxPages = objProductManage.getCountProduct()/this.numberShow;
       // JOptionPane.showMessageDialog(rootPane, maxPages+""+this.numberShow);
        cbbPages.removeAllItems();
        for(int i=1;i<=maxPages;i++){
            cbbPages.addItem(i);
        }
    }
    private void loadPages(int pages, int numbershow){
        this.pages = pages;
        this. numberShow = numbershow;
        this.numberStart = this.pages * this.numberShow;
        this.numberEnd = this.numberShow *( this.pages+1);
    }
    private void exhibitorTable(){
       
       ExhibitorManage objExhibitorManage = new ExhibitorManage();
       exhibitorTableModel = new ExhibitorTableModel(objExhibitorManage.getList());
       tblExhibitor.setModel(exhibitorTableModel);
    }
    private  void exhibitorTrashTable(){
       ExhibitorManage objExhibitorManage = new ExhibitorManage();

       exhibitorTableModel = new ExhibitorTableModel(objExhibitorManage.getListTrash());
       tblExhibitor.setModel(exhibitorTableModel);
    }
    private void productTable(){
        BoothProductManage objProductManage = new BoothProductManage();
        ArrayList<BoothProduct> arrSubList = new ArrayList<BoothProduct>();
        ArrayList<BoothProduct> arrList = objProductManage.getList();
        for(int i=0;i<objProductManage.getList().size();i++){
            if(i >= this.numberStart && i < this.numberEnd){
                arrSubList.add(arrList.get(i));
            }
        }
        productTableModel = new ProductTableModel(arrSubList);
        tblProduct.setModel(productTableModel);    
    }

    private void productSearchTable(){
        BoothProductManage objProductManage = new BoothProductManage();
        productTableModel = new ProductTableModel(objProductManage.search(txtProductSearch.getText()));
        tblProduct.setModel(productTableModel);    
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        toolbarPanel = new javax.swing.JPanel();
        lblSeparator = new javax.swing.JLabel();
        jToolBar1 = new javax.swing.JToolBar();
        jLabel1 = new javax.swing.JLabel();
        btnPreview = new javax.swing.JButton();
        btnPrint = new javax.swing.JButton();
        lblSeparatorH = new javax.swing.JLabel();
        btnRestoreExhibitor = new javax.swing.JButton();
        btnDeleteToTrashExhibitor = new javax.swing.JButton();
        btnTrashExhibitor = new javax.swing.JButton();
        btnDeleteExhibitor = new javax.swing.JButton();
        btnUnblockExhibitor = new javax.swing.JButton();
        btnBlockExhibitor = new javax.swing.JButton();
        btnEditExhibitor = new javax.swing.JButton();
        btnAddNewExhibitor = new javax.swing.JButton();
        btnRestoreBooth = new javax.swing.JButton();
        btnEmptyTrashBooth = new javax.swing.JButton();
        btnTrashBooth = new javax.swing.JButton();
        btnDeleteBooth = new javax.swing.JButton();
        btnUnblockBooth = new javax.swing.JButton();
        btnBlockBooth = new javax.swing.JButton();
        btnEditBooth = new javax.swing.JButton();
        btnAddNewBooth = new javax.swing.JButton();
        lblSeparatorH1 = new javax.swing.JLabel();
        btnRestoreProduct = new javax.swing.JButton();
        btnEmptyTrashProduct = new javax.swing.JButton();
        btnTrashProduct = new javax.swing.JButton();
        btnDeleteProduct = new javax.swing.JButton();
        btnUnblockProduct = new javax.swing.JButton();
        btnBlockProduct = new javax.swing.JButton();
        btnEditProduct = new javax.swing.JButton();
        btnAddNewProduct = new javax.swing.JButton();
        lblSeparatorH2 = new javax.swing.JLabel();
        btnRestoreAccount = new javax.swing.JButton();
        btnEmptyTrashAccount = new javax.swing.JButton();
        btnTrashAccount = new javax.swing.JButton();
        btnDeleteAccount = new javax.swing.JButton();
        btnUnblockAccount = new javax.swing.JButton();
        btnBlockAccount = new javax.swing.JButton();
        btnEditAccount = new javax.swing.JButton();
        btnAddNewAccount = new javax.swing.JButton();
        lblSeparatorH3 = new javax.swing.JLabel();
        btnRestoreExpoInfo = new javax.swing.JButton();
        btnEmptyTrashExpoInfo = new javax.swing.JButton();
        btnTrashExpoInfo = new javax.swing.JButton();
        btnDeleteExpoInfo = new javax.swing.JButton();
        btnUnblockExpoInfo = new javax.swing.JButton();
        btnBlockExpoInfo = new javax.swing.JButton();
        btnEditExpoInfo = new javax.swing.JButton();
        btnAddNewExpoInfo = new javax.swing.JButton();
        btnDeleteEmployee = new javax.swing.JButton();
        btnEditEmployee = new javax.swing.JButton();
        btnAddNewEmployee = new javax.swing.JButton();
        taskbarPanel = new javax.swing.JPanel();
        taskbarTabbedPane = new javax.swing.JTabbedPane();
        desktopTabbedPane = new javax.swing.JTabbedPane();
        expoInfomationTabbedPane = new javax.swing.JTabbedPane();
        exhibitorManageTabbedPane = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblExhibitor = new javax.swing.JTable();
        btlRefreshExhibitorTable = new javax.swing.JButton();
        boothManageTabbedPane = new javax.swing.JTabbedPane();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tbBooth = new javax.swing.JTable();
        btnRefeshBooth = new javax.swing.JButton();
        txtSearchBooth = new javax.swing.JTextField();
        btnSearchBooth = new javax.swing.JButton();
        btnViewProduct = new javax.swing.JButton();
        btnViewEmployee = new javax.swing.JButton();
        jScrollPane6 = new javax.swing.JScrollPane();
        tbViewProduct = new javax.swing.JTable();
        employeeManage = new javax.swing.JTabbedPane();
        jPanel5 = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        tbEmployee = new javax.swing.JTable();
        BtnRefreshEmployee = new javax.swing.JButton();
        txtSerachEmployee = new javax.swing.JTextField();
        btnSearchEmployee = new javax.swing.JButton();
        productManageTabbedPane = new javax.swing.JTabbedPane();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tblProduct = new javax.swing.JTable();
        btnRefreshProductTable = new javax.swing.JButton();
        txtProductSearch = new javax.swing.JTextField();
        btnSearch = new javax.swing.JButton();
        cbbPages = new javax.swing.JComboBox();
        lblPages = new javax.swing.JLabel();
        accountingReportTabbedPane = new javax.swing.JTabbedPane();
        AccountManageTabbedPane = new javax.swing.JTabbedPane();
        jPanel4 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        tbAccountManager = new javax.swing.JTable();
        jButton1 = new javax.swing.JButton();
        botToolBar1 = new javax.swing.JToolBar();
        lblaccountLogin = new javax.swing.JLabel();
        lblLastTimelogin = new javax.swing.JLabel();
        botToolBar2 = new javax.swing.JToolBar();
        lblPA = new javax.swing.JLabel();
        menuBar = new javax.swing.JMenuBar();
        systemMenu = new javax.swing.JMenu();
        jSeparator6 = new javax.swing.JPopupMenu.Separator();
        logOffMenuItem = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        exitMenuItem = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JPopupMenu.Separator();
        languageMenu = new javax.swing.JMenu();
        jSeparator5 = new javax.swing.JPopupMenu.Separator();
        usaMenuItem = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        vnMenuItem = new javax.swing.JMenuItem();
        jSeparator4 = new javax.swing.JPopupMenu.Separator();
        unitMeasureMenu = new javax.swing.JMenu();
        SpaceMenuItem = new javax.swing.JMenuItem();
        SizeMenuItem = new javax.swing.JMenuItem();
        WeightMenuItem = new javax.swing.JMenuItem();
        lblCategoryProduct = new javax.swing.JMenu();
        helpMenu = new javax.swing.JMenu();
        manageGuideMenuItem = new javax.swing.JMenuItem();
        aboutMenuItem = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Expo Management System");
        setBackground(new java.awt.Color(0, 0, 0));
        setResizable(false);

        toolbarPanel.setBackground(new java.awt.Color(245, 245, 245));
        toolbarPanel.setAlignmentX(0.0F);
        toolbarPanel.setAlignmentY(0.0F);
        toolbarPanel.setPreferredSize(new java.awt.Dimension(1010, 100));

        lblSeparator.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        lblSeparator.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/separator.png"))); // NOI18N
        lblSeparator.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        lblSeparator.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        lblSeparator.setMaximumSize(new java.awt.Dimension(20, 5));
        lblSeparator.setMinimumSize(new java.awt.Dimension(10, 4));
        lblSeparator.setPreferredSize(new java.awt.Dimension(1000, 5));
        lblSeparator.setVerticalTextPosition(javax.swing.SwingConstants.TOP);

        jToolBar1.setBackground(new java.awt.Color(245, 245, 245));
        jToolBar1.setBorder(null);
        jToolBar1.setFloatable(false);
        jToolBar1.setRollover(true);

        jLabel1.setText("Hiển thị banner hệ thống ! ");
        jToolBar1.add(jLabel1);

        btnPreview.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/preview.png"))); // NOI18N
        btnPreview.setText("Preview");
        btnPreview.setFocusable(false);
        btnPreview.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnPreview.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnPreview.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnPreviewActionPerformed(evt);
            }
        });
        jToolBar1.add(btnPreview);

        btnPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/print_32.png"))); // NOI18N
        btnPrint.setText("Print");
        btnPrint.setFocusable(false);
        btnPrint.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnPrint.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnPrint);

        lblSeparatorH.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/separate_h.png"))); // NOI18N
        lblSeparatorH.setAlignmentX(0.5F);
        lblSeparatorH.setMaximumSize(new java.awt.Dimension(5, 84));
        lblSeparatorH.setMinimumSize(new java.awt.Dimension(5, 84));
        lblSeparatorH.setPreferredSize(new java.awt.Dimension(5, 84));
        jToolBar1.add(lblSeparatorH);

        btnRestoreExhibitor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/trash_32.png"))); // NOI18N
        btnRestoreExhibitor.setText("Restore");
        btnRestoreExhibitor.setFocusable(false);
        btnRestoreExhibitor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnRestoreExhibitor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnRestoreExhibitor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRestoreExhibitorActionPerformed(evt);
            }
        });
        jToolBar1.add(btnRestoreExhibitor);

        btnDeleteToTrashExhibitor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/delete_trash.png"))); // NOI18N
        btnDeleteToTrashExhibitor.setText("Delete To Trash");
        btnDeleteToTrashExhibitor.setFocusable(false);
        btnDeleteToTrashExhibitor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnDeleteToTrashExhibitor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnDeleteToTrashExhibitor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteToTrashExhibitorActionPerformed(evt);
            }
        });
        jToolBar1.add(btnDeleteToTrashExhibitor);

        btnTrashExhibitor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/trash.png"))); // NOI18N
        btnTrashExhibitor.setText("Trash");
        btnTrashExhibitor.setFocusable(false);
        btnTrashExhibitor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnTrashExhibitor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnTrashExhibitor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnTrashExhibitorActionPerformed(evt);
            }
        });
        jToolBar1.add(btnTrashExhibitor);

        btnDeleteExhibitor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/delete_32.png"))); // NOI18N
        btnDeleteExhibitor.setText("Deleted");
        btnDeleteExhibitor.setFocusable(false);
        btnDeleteExhibitor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnDeleteExhibitor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnDeleteExhibitor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteExhibitorActionPerformed(evt);
            }
        });
        jToolBar1.add(btnDeleteExhibitor);

        btnUnblockExhibitor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/unblock_32.png"))); // NOI18N
        btnUnblockExhibitor.setText("Unblock");
        btnUnblockExhibitor.setFocusable(false);
        btnUnblockExhibitor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnUnblockExhibitor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnUnblockExhibitor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnUnblockExhibitorActionPerformed(evt);
            }
        });
        jToolBar1.add(btnUnblockExhibitor);

        btnBlockExhibitor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/block_32.png"))); // NOI18N
        btnBlockExhibitor.setText("Block");
        btnBlockExhibitor.setFocusable(false);
        btnBlockExhibitor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnBlockExhibitor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnBlockExhibitor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBlockExhibitorActionPerformed(evt);
            }
        });
        jToolBar1.add(btnBlockExhibitor);

        btnEditExhibitor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/pen.png"))); // NOI18N
        btnEditExhibitor.setText("Edit");
        btnEditExhibitor.setFocusable(false);
        btnEditExhibitor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEditExhibitor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnEditExhibitor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditExhibitorActionPerformed(evt);
            }
        });
        jToolBar1.add(btnEditExhibitor);

        btnAddNewExhibitor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/addnew.png"))); // NOI18N
        btnAddNewExhibitor.setText("Add New");
        btnAddNewExhibitor.setFocusable(false);
        btnAddNewExhibitor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnAddNewExhibitor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnAddNewExhibitor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddNewExhibitorActionPerformed(evt);
            }
        });
        jToolBar1.add(btnAddNewExhibitor);

        btnRestoreBooth.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/trash_32.png"))); // NOI18N
        btnRestoreBooth.setText("Restore");
        btnRestoreBooth.setFocusable(false);
        btnRestoreBooth.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnRestoreBooth.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnRestoreBooth.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRestoreBoothActionPerformed(evt);
            }
        });
        jToolBar1.add(btnRestoreBooth);

        btnEmptyTrashBooth.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/delete_trash.png"))); // NOI18N
        btnEmptyTrashBooth.setText("Empty Trash");
        btnEmptyTrashBooth.setFocusable(false);
        btnEmptyTrashBooth.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEmptyTrashBooth.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnEmptyTrashBooth.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEmptyTrashBoothActionPerformed(evt);
            }
        });
        jToolBar1.add(btnEmptyTrashBooth);

        btnTrashBooth.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/trash.png"))); // NOI18N
        btnTrashBooth.setText("Trash");
        btnTrashBooth.setFocusable(false);
        btnTrashBooth.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnTrashBooth.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnTrashBooth);

        btnDeleteBooth.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/delete_32.png"))); // NOI18N
        btnDeleteBooth.setText("Deleted");
        btnDeleteBooth.setFocusable(false);
        btnDeleteBooth.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnDeleteBooth.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnDeleteBooth.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteBoothActionPerformed(evt);
            }
        });
        jToolBar1.add(btnDeleteBooth);

        btnUnblockBooth.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/unblock_32.png"))); // NOI18N
        btnUnblockBooth.setText("Unblock");
        btnUnblockBooth.setFocusable(false);
        btnUnblockBooth.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnUnblockBooth.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnUnblockBooth);

        btnBlockBooth.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/block_32.png"))); // NOI18N
        btnBlockBooth.setText("Block");
        btnBlockBooth.setFocusable(false);
        btnBlockBooth.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnBlockBooth.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnBlockBooth);

        btnEditBooth.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/pen.png"))); // NOI18N
        btnEditBooth.setText("Edit");
        btnEditBooth.setFocusable(false);
        btnEditBooth.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEditBooth.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnEditBooth.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditBoothActionPerformed(evt);
            }
        });
        jToolBar1.add(btnEditBooth);

        btnAddNewBooth.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/addnew.png"))); // NOI18N
        btnAddNewBooth.setText("Add New");
        btnAddNewBooth.setFocusable(false);
        btnAddNewBooth.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnAddNewBooth.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnAddNewBooth.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddNewBoothActionPerformed(evt);
            }
        });
        jToolBar1.add(btnAddNewBooth);

        lblSeparatorH1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/separate_h.png"))); // NOI18N
        lblSeparatorH1.setAlignmentX(0.5F);
        lblSeparatorH1.setMaximumSize(new java.awt.Dimension(5, 84));
        lblSeparatorH1.setMinimumSize(new java.awt.Dimension(5, 84));
        lblSeparatorH1.setPreferredSize(new java.awt.Dimension(5, 84));
        jToolBar1.add(lblSeparatorH1);

        btnRestoreProduct.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/trash_32.png"))); // NOI18N
        btnRestoreProduct.setText("Restore");
        btnRestoreProduct.setFocusable(false);
        btnRestoreProduct.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnRestoreProduct.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnRestoreProduct);

        btnEmptyTrashProduct.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/delete_trash.png"))); // NOI18N
        btnEmptyTrashProduct.setText("Empty Trash");
        btnEmptyTrashProduct.setFocusable(false);
        btnEmptyTrashProduct.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEmptyTrashProduct.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnEmptyTrashProduct);

        btnTrashProduct.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/trash.png"))); // NOI18N
        btnTrashProduct.setText("Trash");
        btnTrashProduct.setFocusable(false);
        btnTrashProduct.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnTrashProduct.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnTrashProduct);

        btnDeleteProduct.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/delete_32.png"))); // NOI18N
        btnDeleteProduct.setText("Deleted");
        btnDeleteProduct.setFocusable(false);
        btnDeleteProduct.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnDeleteProduct.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnDeleteProduct.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteProductActionPerformed(evt);
            }
        });
        jToolBar1.add(btnDeleteProduct);

        btnUnblockProduct.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/unblock_32.png"))); // NOI18N
        btnUnblockProduct.setText("Unblock");
        btnUnblockProduct.setFocusable(false);
        btnUnblockProduct.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnUnblockProduct.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnUnblockProduct.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnUnblockProductActionPerformed(evt);
            }
        });
        jToolBar1.add(btnUnblockProduct);

        btnBlockProduct.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/block_32.png"))); // NOI18N
        btnBlockProduct.setText("Block");
        btnBlockProduct.setFocusable(false);
        btnBlockProduct.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnBlockProduct.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnBlockProduct.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBlockProductActionPerformed(evt);
            }
        });
        jToolBar1.add(btnBlockProduct);

        btnEditProduct.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/pen.png"))); // NOI18N
        btnEditProduct.setText("Edit");
        btnEditProduct.setFocusable(false);
        btnEditProduct.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEditProduct.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnEditProduct.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditProductActionPerformed(evt);
            }
        });
        jToolBar1.add(btnEditProduct);

        btnAddNewProduct.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/addnew.png"))); // NOI18N
        btnAddNewProduct.setText("Add New");
        btnAddNewProduct.setFocusable(false);
        btnAddNewProduct.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnAddNewProduct.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnAddNewProduct.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddNewProductActionPerformed(evt);
            }
        });
        jToolBar1.add(btnAddNewProduct);

        lblSeparatorH2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/separate_h.png"))); // NOI18N
        lblSeparatorH2.setAlignmentX(0.5F);
        lblSeparatorH2.setMaximumSize(new java.awt.Dimension(5, 84));
        lblSeparatorH2.setMinimumSize(new java.awt.Dimension(5, 84));
        lblSeparatorH2.setPreferredSize(new java.awt.Dimension(5, 84));
        jToolBar1.add(lblSeparatorH2);

        btnRestoreAccount.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/trash_32.png"))); // NOI18N
        btnRestoreAccount.setText("Restore");
        btnRestoreAccount.setFocusable(false);
        btnRestoreAccount.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnRestoreAccount.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnRestoreAccount);

        btnEmptyTrashAccount.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/delete_trash.png"))); // NOI18N
        btnEmptyTrashAccount.setText("Empty Trash");
        btnEmptyTrashAccount.setFocusable(false);
        btnEmptyTrashAccount.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEmptyTrashAccount.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnEmptyTrashAccount);

        btnTrashAccount.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/trash.png"))); // NOI18N
        btnTrashAccount.setText("Trash");
        btnTrashAccount.setFocusable(false);
        btnTrashAccount.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnTrashAccount.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnTrashAccount.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnTrashAccountActionPerformed(evt);
            }
        });
        jToolBar1.add(btnTrashAccount);

        btnDeleteAccount.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/delete_32.png"))); // NOI18N
        btnDeleteAccount.setText("Deleted");
        btnDeleteAccount.setFocusable(false);
        btnDeleteAccount.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnDeleteAccount.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnDeleteAccount.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteAccountActionPerformed(evt);
            }
        });
        jToolBar1.add(btnDeleteAccount);

        btnUnblockAccount.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/unblock_32.png"))); // NOI18N
        btnUnblockAccount.setText("Unblock");
        btnUnblockAccount.setFocusable(false);
        btnUnblockAccount.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnUnblockAccount.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnUnblockAccount);

        btnBlockAccount.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/block_32.png"))); // NOI18N
        btnBlockAccount.setText("Block");
        btnBlockAccount.setFocusable(false);
        btnBlockAccount.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnBlockAccount.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnBlockAccount);

        btnEditAccount.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/pen.png"))); // NOI18N
        btnEditAccount.setText("Edit");
        btnEditAccount.setFocusable(false);
        btnEditAccount.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEditAccount.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnEditAccount.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditAccountActionPerformed(evt);
            }
        });
        jToolBar1.add(btnEditAccount);

        btnAddNewAccount.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/addnew.png"))); // NOI18N
        btnAddNewAccount.setText("Add New");
        btnAddNewAccount.setFocusable(false);
        btnAddNewAccount.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnAddNewAccount.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnAddNewAccount.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddNewAccountActionPerformed(evt);
            }
        });
        jToolBar1.add(btnAddNewAccount);

        lblSeparatorH3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/separate_h.png"))); // NOI18N
        lblSeparatorH3.setAlignmentX(0.5F);
        lblSeparatorH3.setMaximumSize(new java.awt.Dimension(5, 84));
        lblSeparatorH3.setMinimumSize(new java.awt.Dimension(5, 84));
        lblSeparatorH3.setPreferredSize(new java.awt.Dimension(5, 84));
        jToolBar1.add(lblSeparatorH3);

        btnRestoreExpoInfo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/trash_32.png"))); // NOI18N
        btnRestoreExpoInfo.setText("Restore");
        btnRestoreExpoInfo.setFocusable(false);
        btnRestoreExpoInfo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnRestoreExpoInfo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnRestoreExpoInfo);

        btnEmptyTrashExpoInfo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/delete_trash.png"))); // NOI18N
        btnEmptyTrashExpoInfo.setText("Empty Trash");
        btnEmptyTrashExpoInfo.setFocusable(false);
        btnEmptyTrashExpoInfo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEmptyTrashExpoInfo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnEmptyTrashExpoInfo);

        btnTrashExpoInfo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/trash.png"))); // NOI18N
        btnTrashExpoInfo.setText("Trash");
        btnTrashExpoInfo.setFocusable(false);
        btnTrashExpoInfo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnTrashExpoInfo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnTrashExpoInfo);

        btnDeleteExpoInfo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/delete_32.png"))); // NOI18N
        btnDeleteExpoInfo.setText("Deleted");
        btnDeleteExpoInfo.setFocusable(false);
        btnDeleteExpoInfo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnDeleteExpoInfo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnDeleteExpoInfo);

        btnUnblockExpoInfo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/unblock_32.png"))); // NOI18N
        btnUnblockExpoInfo.setText("Unblock");
        btnUnblockExpoInfo.setFocusable(false);
        btnUnblockExpoInfo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnUnblockExpoInfo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnUnblockExpoInfo);

        btnBlockExpoInfo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/block_32.png"))); // NOI18N
        btnBlockExpoInfo.setText("Block");
        btnBlockExpoInfo.setFocusable(false);
        btnBlockExpoInfo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnBlockExpoInfo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnBlockExpoInfo);

        btnEditExpoInfo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/pen.png"))); // NOI18N
        btnEditExpoInfo.setText("Edit");
        btnEditExpoInfo.setFocusable(false);
        btnEditExpoInfo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEditExpoInfo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnEditExpoInfo);

        btnAddNewExpoInfo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/addnew.png"))); // NOI18N
        btnAddNewExpoInfo.setText("Add New");
        btnAddNewExpoInfo.setFocusable(false);
        btnAddNewExpoInfo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnAddNewExpoInfo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnAddNewExpoInfo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddNewExpoInfoActionPerformed(evt);
            }
        });
        jToolBar1.add(btnAddNewExpoInfo);

        btnDeleteEmployee.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/delete_32.png"))); // NOI18N
        btnDeleteEmployee.setText("Deleted");
        btnDeleteEmployee.setFocusable(false);
        btnDeleteEmployee.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnDeleteEmployee.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnDeleteEmployee.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteEmployeeActionPerformed(evt);
            }
        });
        jToolBar1.add(btnDeleteEmployee);

        btnEditEmployee.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/pen.png"))); // NOI18N
        btnEditEmployee.setText("Edit");
        btnEditEmployee.setFocusable(false);
        btnEditEmployee.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEditEmployee.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnEditEmployee.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditEmployeeActionPerformed(evt);
            }
        });
        jToolBar1.add(btnEditEmployee);

        btnAddNewEmployee.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/addnew.png"))); // NOI18N
        btnAddNewEmployee.setText("Add New");
        btnAddNewEmployee.setFocusable(false);
        btnAddNewEmployee.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnAddNewEmployee.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnAddNewEmployee.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddNewEmployeeActionPerformed(evt);
            }
        });
        jToolBar1.add(btnAddNewEmployee);

        javax.swing.GroupLayout toolbarPanelLayout = new javax.swing.GroupLayout(toolbarPanel);
        toolbarPanel.setLayout(toolbarPanelLayout);
        toolbarPanelLayout.setHorizontalGroup(
            toolbarPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 1066, Short.MAX_VALUE)
            .addGroup(toolbarPanelLayout.createSequentialGroup()
                .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 452, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(614, Short.MAX_VALUE))
        );
        toolbarPanelLayout.setVerticalGroup(
            toolbarPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, toolbarPanelLayout.createSequentialGroup()
                .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(lblSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        taskbarPanel.setAlignmentX(0.0F);
        taskbarPanel.setAlignmentY(0.0F);
        taskbarPanel.setPreferredSize(new java.awt.Dimension(1010, 600));

        taskbarTabbedPane.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
        taskbarTabbedPane.setTabPlacement(javax.swing.JTabbedPane.LEFT);

        desktopTabbedPane.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
        desktopTabbedPane.setTabPlacement(javax.swing.JTabbedPane.LEFT);
        desktopTabbedPane.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                desktopTabbedPaneComponentShown(evt);
            }
        });
        taskbarTabbedPane.addTab("Desktop", new javax.swing.ImageIcon(getClass().getResource("/Images/monitor_32.png")), desktopTabbedPane); // NOI18N

        expoInfomationTabbedPane.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
        expoInfomationTabbedPane.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                expoInfomationTabbedPaneComponentShown(evt);
            }
        });
        taskbarTabbedPane.addTab("Expo Infomation", new javax.swing.ImageIcon(getClass().getResource("/Images/expo.png")), expoInfomationTabbedPane); // NOI18N

        exhibitorManageTabbedPane.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                exhibitorManageTabbedPaneComponentShown(evt);
            }
        });

        tblExhibitor.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null}
            },
            new String [] {
                "No", "Name", "Sex", "Phone", "Email", "Address", "Status", "Identity Card", "Register Date", "Modified Date"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        tblExhibitor.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tblExhibitor.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tblExhibitorMouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(tblExhibitor);

        btlRefreshExhibitorTable.setText("Refresh");
        btlRefreshExhibitorTable.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btlRefreshExhibitorTableActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btlRefreshExhibitorTable))
            .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 918, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btlRefreshExhibitorTable)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 471, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        exhibitorManageTabbedPane.addTab("Exhibitor Manage", jPanel1);

        taskbarTabbedPane.addTab("Exhibitor Manage", new javax.swing.ImageIcon(getClass().getResource("/Images/exhibitor.png")), exhibitorManageTabbedPane); // NOI18N

        boothManageTabbedPane.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                boothManageTabbedPaneComponentShown(evt);
            }
        });

        jScrollPane3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jScrollPane3doubleClick(evt);
            }
        });

        tbBooth.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        tbBooth.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tbBoothMouseClicked(evt);
            }
        });
        jScrollPane3.setViewportView(tbBooth);

        btnRefeshBooth.setText("Refresh");
        btnRefeshBooth.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRefeshBoothActionPerformed(evt);
            }
        });

        btnSearchBooth.setText("Search Booth");
        btnSearchBooth.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSearchBoothActionPerformed(evt);
            }
        });

        btnViewProduct.setText("View Product");
        btnViewProduct.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnViewProductActionPerformed(evt);
            }
        });

        btnViewEmployee.setText("View Employee");
        btnViewEmployee.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnViewEmployeeActionPerformed(evt);
            }
        });

        tbViewProduct.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane6.setViewportView(tbViewProduct);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(txtSearchBooth, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(54, 54, 54)
                        .addComponent(btnSearchBooth)
                        .addGap(56, 56, 56)
                        .addComponent(btnViewProduct)
                        .addGap(75, 75, 75)
                        .addComponent(btnViewEmployee)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 196, Short.MAX_VALUE)
                        .addComponent(btnRefeshBooth))
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 908, Short.MAX_VALUE))
                .addContainerGap())
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 918, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnRefeshBooth)
                    .addComponent(txtSearchBooth, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnSearchBooth)
                    .addComponent(btnViewProduct)
                    .addComponent(btnViewEmployee))
                .addGap(221, 221, 221)
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(20, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                    .addContainerGap(31, Short.MAX_VALUE)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(298, 298, 298)))
        );

        boothManageTabbedPane.addTab("tab2", jPanel3);

        taskbarTabbedPane.addTab("Booth Manage", new javax.swing.ImageIcon(getClass().getResource("/Images/cinema.png")), boothManageTabbedPane); // NOI18N

        employeeManage.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                employeeManageComponentShown(evt);
            }
        });

        tbEmployee.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane5.setViewportView(tbEmployee);

        BtnRefreshEmployee.setText("Refresh");
        BtnRefreshEmployee.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnRefreshEmployeeActionPerformed(evt);
            }
        });

        btnSearchEmployee.setText("Search");
        btnSearchEmployee.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSearchEmployeeActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                        .addComponent(txtSerachEmployee, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(32, 32, 32)
                        .addComponent(btnSearchEmployee)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 621, Short.MAX_VALUE)
                        .addComponent(BtnRefreshEmployee))
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 908, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(8, 8, 8)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(BtnRefreshEmployee)
                    .addComponent(txtSerachEmployee, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnSearchEmployee))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 389, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(66, Short.MAX_VALUE))
        );

        employeeManage.addTab("tab1", jPanel5);

        taskbarTabbedPane.addTab("Employee Manage", employeeManage);

        productManageTabbedPane.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                productManageTabbedPaneComponentShown(evt);
            }
        });

        tblProduct.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        tblProduct.setAutoscrolls(false);
        tblProduct.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        tblProduct.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tblProductMouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(tblProduct);

        btnRefreshProductTable.setText("Refresh");
        btnRefreshProductTable.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRefreshProductTableActionPerformed(evt);
            }
        });

        txtProductSearch.setText("Product name");

        btnSearch.setText("Search");
        btnSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSearchActionPerformed(evt);
            }
        });

        cbbPages.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbbPages.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbbPagesActionPerformed(evt);
            }
        });

        lblPages.setText("Pages");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addComponent(txtProductSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnSearch)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 450, Short.MAX_VALUE)
                .addComponent(btnRefreshProductTable)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblPages)
                .addGap(9, 9, 9)
                .addComponent(cbbPages, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 918, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtProductSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnSearch)
                    .addComponent(cbbPages, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnRefreshProductTable)
                    .addComponent(lblPages))
                .addContainerGap(474, Short.MAX_VALUE))
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addContainerGap(31, Short.MAX_VALUE)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 466, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        productManageTabbedPane.addTab("Product Manage", jPanel2);

        taskbarTabbedPane.addTab("Product Manage", new javax.swing.ImageIcon(getClass().getResource("/Images/product.png")), productManageTabbedPane); // NOI18N

        accountingReportTabbedPane.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                accountingReportTabbedPaneComponentShown(evt);
            }
        });
        taskbarTabbedPane.addTab("Accounting report", new javax.swing.ImageIcon(getClass().getResource("/Images/report.png")), accountingReportTabbedPane); // NOI18N

        AccountManageTabbedPane.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
        AccountManageTabbedPane.setEnabled(false);
        AccountManageTabbedPane.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                AccountManageTabbedPaneComponentShown(evt);
            }
        });

        tbAccountManager.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        tbAccountManager.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tbAccountManagerTableDoubleclick(evt);
            }
        });
        jScrollPane4.setViewportView(tbAccountManager);

        jButton1.setText("Refresh");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap(837, Short.MAX_VALUE)
                .addComponent(jButton1)
                .addContainerGap())
            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 918, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jButton1)
                .addContainerGap(474, Short.MAX_VALUE))
            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                    .addContainerGap(38, Short.MAX_VALUE)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 448, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()))
        );

        AccountManageTabbedPane.addTab("tab2", jPanel4);

        taskbarTabbedPane.addTab("Account manage", new javax.swing.ImageIcon(getClass().getResource("/Images/admin.png")), AccountManageTabbedPane); // NOI18N

        javax.swing.GroupLayout taskbarPanelLayout = new javax.swing.GroupLayout(taskbarPanel);
        taskbarPanel.setLayout(taskbarPanelLayout);
        taskbarPanelLayout.setHorizontalGroup(
            taskbarPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(taskbarTabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 1066, Short.MAX_VALUE)
        );
        taskbarPanelLayout.setVerticalGroup(
            taskbarPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(taskbarPanelLayout.createSequentialGroup()
                .addComponent(taskbarTabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 530, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(18, Short.MAX_VALUE))
        );

        botToolBar1.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        botToolBar1.setFloatable(false);
        botToolBar1.setRollover(true);

        lblaccountLogin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/key.png"))); // NOI18N
        lblaccountLogin.setText("Account: Administrator ");
        botToolBar1.add(lblaccountLogin);

        lblLastTimelogin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/clock_32.png"))); // NOI18N
        lblLastTimelogin.setText("Last login : 24-3-2010 17:29:30");
        botToolBar1.add(lblLastTimelogin);

        botToolBar2.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        botToolBar2.setFloatable(false);
        botToolBar2.setRollover(true);

        lblPA.setText("eProject - Expo Management System - Design by Team 2, C0909l SM2, FPT Aptech Fat2");
        botToolBar2.add(lblPA);

        systemMenu.setBorder(null);
        systemMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/config.png"))); // NOI18N
        systemMenu.setMnemonic('f');
        systemMenu.setText("System");
        systemMenu.add(jSeparator6);

        logOffMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/lock_32.png"))); // NOI18N
        logOffMenuItem.setMnemonic('o');
        logOffMenuItem.setText("Log off");
        logOffMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                logOffMenuItemActionPerformed(evt);
            }
        });
        systemMenu.add(logOffMenuItem);
        systemMenu.add(jSeparator1);

        exitMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/exit.png"))); // NOI18N
        exitMenuItem.setMnemonic('s');
        exitMenuItem.setText("Exit");
        exitMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exitMenuItemActionPerformed(evt);
            }
        });
        systemMenu.add(exitMenuItem);
        systemMenu.add(jSeparator3);

        menuBar.add(systemMenu);

        languageMenu.setMnemonic('e');
        languageMenu.setText("Language");
        languageMenu.add(jSeparator5);

        usaMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/United States of America (USA).png"))); // NOI18N
        usaMenuItem.setMnemonic('t');
        usaMenuItem.setText("United States of America (USA)");
        languageMenu.add(usaMenuItem);
        languageMenu.add(jSeparator2);

        vnMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Viet Nam.png"))); // NOI18N
        vnMenuItem.setMnemonic('y');
        vnMenuItem.setText("Viet Name");
        languageMenu.add(vnMenuItem);
        languageMenu.add(jSeparator4);

        menuBar.add(languageMenu);

        unitMeasureMenu.setText("Unit Measure");

        SpaceMenuItem.setText("Space Unit Measure");
        SpaceMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SpaceMenuItemActionPerformed(evt);
            }
        });
        unitMeasureMenu.add(SpaceMenuItem);

        SizeMenuItem.setText("Size Unit Measure");
        SizeMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SizeMenuItemActionPerformed(evt);
            }
        });
        unitMeasureMenu.add(SizeMenuItem);

        WeightMenuItem.setText("Weight Unit Measure");
        WeightMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                WeightMenuItemActionPerformed(evt);
            }
        });
        unitMeasureMenu.add(WeightMenuItem);

        menuBar.add(unitMeasureMenu);

        lblCategoryProduct.setText("Category Product");
        menuBar.add(lblCategoryProduct);

        helpMenu.setMnemonic('h');
        helpMenu.setText("Help");

        manageGuideMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/user_guid.png"))); // NOI18N
        manageGuideMenuItem.setMnemonic('c');
        manageGuideMenuItem.setText("Manage Guide");
        helpMenu.add(manageGuideMenuItem);

        aboutMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/About.png"))); // NOI18N
        aboutMenuItem.setMnemonic('a');
        aboutMenuItem.setText("About");
        helpMenu.add(aboutMenuItem);

        menuBar.add(helpMenu);

        setJMenuBar(menuBar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(botToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 547, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(botToolBar2, javax.swing.GroupLayout.DEFAULT_SIZE, 513, Short.MAX_VALUE))
            .addComponent(toolbarPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 1066, Short.MAX_VALUE)
            .addComponent(taskbarPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 1066, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(toolbarPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(taskbarPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 548, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(botToolBar2, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
                    .addComponent(botToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void exhibitorManageTabbedPaneComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_exhibitorManageTabbedPaneComponentShown
        // TODO add your handling code here:
        //boothManageTabbedPane.setVisible(false);
        jToolBar1.removeAll();
        jToolBar1.setSize(0, 0);
        jToolBar1.setSize(457, 84);
        jToolBar1.add(btnAddNewExhibitor);
        jToolBar1.add(btnEditExhibitor);
        jToolBar1.add(btnBlockExhibitor);
        jToolBar1.add(btnUnblockExhibitor);
        jToolBar1.add(btnDeleteExhibitor);
        jToolBar1.add(btnTrashExhibitor);
        jToolBar1.add(btnRestoreExhibitor);
        jToolBar1.add(btnDeleteToTrashExhibitor);
        exhibitorTable();
        
        
            
    }//GEN-LAST:event_exhibitorManageTabbedPaneComponentShown

    private void boothManageTabbedPaneComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_boothManageTabbedPaneComponentShown
        // TODO add your handling code here:
        //exhibitorManageTabbedPane.setVisible(false);
        jToolBar1.removeAll();
        jToolBar1.setSize(0, 0);
        jToolBar1.setSize(457, 84);
        jToolBar1.add(btnAddNewBooth);
        jToolBar1.add(btnEditBooth);
        //jToolBar1.add(btnBlockBooth);
        //jToolBar1.add(btnUnblockBooth);
        jToolBar1.add(btnDeleteBooth);
        //jToolBar1.add(btnTrashBooth);
        //jToolBar1.add(btnRestoreBooth);
        //jToolBar1.add(btnEmptyTrashBooth);
        BoothTale();
        
    }//GEN-LAST:event_boothManageTabbedPaneComponentShown

    private void desktopTabbedPaneComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_desktopTabbedPaneComponentShown
        // TODO add your handling code here:
        jToolBar1.removeAll();
        jToolBar1.removeAll();
        jToolBar1.setSize(0, 0);
        jToolBar1.setSize(457, 84);
        jToolBar1.add(jLabel1);

    }//GEN-LAST:event_desktopTabbedPaneComponentShown

    private void expoInfomationTabbedPaneComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_expoInfomationTabbedPaneComponentShown
        // TODO add your handling code here:
        jToolBar1.removeAll();
        jToolBar1.setSize(0, 0);
        jToolBar1.setSize(457, 84);
        jToolBar1.add(btnAddNewExpoInfo);
        jToolBar1.add(btnEditExpoInfo);
        jToolBar1.add(btnBlockExpoInfo);
        jToolBar1.add(btnUnblockExpoInfo);
        jToolBar1.add(btnDeleteExpoInfo);
        jToolBar1.add(btnTrashExpoInfo);
        jToolBar1.add(btnRestoreExpoInfo);
        jToolBar1.add(btnEmptyTrashExpoInfo);
    }//GEN-LAST:event_expoInfomationTabbedPaneComponentShown

    private void productManageTabbedPaneComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_productManageTabbedPaneComponentShown
        // TODO add your handling code here:
        jToolBar1.removeAll();
        jToolBar1.setSize(0, 0);
        jToolBar1.setSize(457, 84);
        jToolBar1.add(btnAddNewProduct);
        jToolBar1.add(btnEditProduct);
        jToolBar1.add(btnBlockProduct);
        jToolBar1.add(btnUnblockProduct);
        jToolBar1.add(btnDeleteProduct);
        productTable();
    }//GEN-LAST:event_productManageTabbedPaneComponentShown

    private void accountingReportTabbedPaneComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_accountingReportTabbedPaneComponentShown
        // TODO add your handling code here:
        jToolBar1.removeAll();
        jToolBar1.setSize(0, 0);
        jToolBar1.setSize(457, 84);
        jToolBar1.add(btnPreview);
        jToolBar1.add(btnPrint);

    }//GEN-LAST:event_accountingReportTabbedPaneComponentShown

    private void AccountManageTabbedPaneComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_AccountManageTabbedPaneComponentShown
        // TODO add your handling code here:
        jToolBar1.removeAll();
        jToolBar1.setSize(0, 0);
        jToolBar1.setSize(457, 84);
        if(usetType.equalsIgnoreCase("Administrator")){
            jToolBar1.add(btnAddNewAccount);
            jToolBar1.add(btnEditAccount);
            //jToolBar1.add(btnBlockAccount);
           // jToolBar1.add(btnUnblockAccount);
            jToolBar1.add(btnDeleteAccount);
            //jToolBar1.add(btnTrashAccount);
            //jToolBar1.add(btnRestoreAccount);
            //jToolBar1.add(btnEmptyTrashAccount);
        }
        AccountTable();
    }//GEN-LAST:event_AccountManageTabbedPaneComponentShown

    private void btnPreviewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPreviewActionPerformed
        // TODO add your handling code here:
        JOptionPane.showMessageDialog(rootPane, "Preview Action");
    }//GEN-LAST:event_btnPreviewActionPerformed

    private void btnTrashAccountActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTrashAccountActionPerformed
        // TODO add your handling code here:
        JOptionPane.showMessageDialog(rootPane, "Preview Action");
    }//GEN-LAST:event_btnTrashAccountActionPerformed

    private void btnRestoreExhibitorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRestoreExhibitorActionPerformed
        // TODO add your handling code here:
        if(idSelectedExhibitor == 0){
             JOptionPane.showMessageDialog(rootPane, "Please select exhibitor row");
        }else{
            ExhibitorManage objExhibitorManage = new ExhibitorManage();
            objExhibitorManage.restoreTrash(idSelectedExhibitor);
            exhibitorTrashTable();
        }
    }//GEN-LAST:event_btnRestoreExhibitorActionPerformed

    private void btnAddNewExhibitorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddNewExhibitorActionPerformed
        // TODO add your handling code here:
        AddExhibitor objAdd = new AddExhibitor(0,"Add New Exhibitor");
        objAdd.setLocationRelativeTo(null);
        objAdd.setVisible(true);
        
    }//GEN-LAST:event_btnAddNewExhibitorActionPerformed

    private void btnEditExhibitorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditExhibitorActionPerformed
        // TODO add your handling code here:
        if(idSelectedExhibitor == 0){
            JOptionPane.showMessageDialog(rootPane, "Please select exhibitor row");
        }else{
            AddExhibitor objAdd = new AddExhibitor(idSelectedExhibitor,"Edit Exhibitor");
            objAdd.setLocationRelativeTo(null);
            idSelectedExhibitor = 0;
            objAdd.setVisible(true);
            
        }
        
    }//GEN-LAST:event_btnEditExhibitorActionPerformed

    private void logOffMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logOffMenuItemActionPerformed
        // TODO add your handling code here:
        MainLogin objLogin = new MainLogin();
        objLogin.setLocationRelativeTo(null);
        objLogin.setVisible(true);
        this.dispose();
    }//GEN-LAST:event_logOffMenuItemActionPerformed

    private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitMenuItemActionPerformed
        // TODO add your handling code here:
        System.exit(0);
    }//GEN-LAST:event_exitMenuItemActionPerformed

    private void btnAddNewBoothActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddNewBoothActionPerformed
        // TODO add your handling code here:
       AddBooth objBooth = new AddBooth(this, true);
       objBooth.setLocationRelativeTo(null);
       objBooth.setVisible(true);
       
    }//GEN-LAST:event_btnAddNewBoothActionPerformed

    private void btnAddNewAccountActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddNewAccountActionPerformed
        // TODO add your handling code here:
       AddAccount objAccount = new AddAccount(this, true);
       objAccount.setLocationRelativeTo(null);
       objAccount.setVisible(true);
    }//GEN-LAST:event_btnAddNewAccountActionPerformed

    private void WeightMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_WeightMenuItemActionPerformed
        // TODO add your handling code here:
        AddWeightUnitMeasure AddWeight=new AddWeightUnitMeasure(this, true);
        AddWeight.setLocationRelativeTo(null);
        AddWeight.setVisible(true);
    }//GEN-LAST:event_WeightMenuItemActionPerformed

    private void tblExhibitorMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblExhibitorMouseClicked
        // TODO add your handling code here:
        int indexRow = tblExhibitor.getSelectedRow();
        Object id = tblExhibitor.getValueAt(indexRow, 0);
        Object name = tblExhibitor.getValueAt(indexRow, 1);
        idSelectedExhibitor = Integer.parseInt(id+"");
        nameSelectedExhibitor = name+"";
        //JOptionPane.showMessageDialog(rootPane, idEdit);
        
    }//GEN-LAST:event_tblExhibitorMouseClicked

    private void btnBlockExhibitorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBlockExhibitorActionPerformed
        // TODO add your handling code here:
        if(idSelectedExhibitor == 0){
            JOptionPane.showMessageDialog(rootPane, "Please select exhibitor row");
        }else{
            ExhibitorManage objExhibitorManage = new ExhibitorManage();
            objExhibitorManage.block(idSelectedExhibitor);
            idSelectedExhibitor = 0;
            exhibitorTable();
        }
    }//GEN-LAST:event_btnBlockExhibitorActionPerformed

    private void btnUnblockExhibitorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnUnblockExhibitorActionPerformed
        // TODO add your handling code here:
        if(idSelectedExhibitor == 0){
             JOptionPane.showMessageDialog(rootPane, "Please select exhibitor row");
        }else{
            ExhibitorManage objExhibitorManage = new ExhibitorManage();
            objExhibitorManage.unBlock(idSelectedExhibitor);
            idSelectedExhibitor = 0;
            
            exhibitorTable();
           
        }
    }//GEN-LAST:event_btnUnblockExhibitorActionPerformed

    private void btnDeleteExhibitorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteExhibitorActionPerformed
        // TODO add your handling code here:
        if(idSelectedExhibitor == 0){
             JOptionPane.showMessageDialog(rootPane, "Please select exhibitor row");
        }else{
            ExhibitorManage objExhibitorManage = new ExhibitorManage();
            objExhibitorManage.deleteById(idSelectedExhibitor);
            idSelectedExhibitor = 0;
           exhibitorTable();
        }
    }//GEN-LAST:event_btnDeleteExhibitorActionPerformed

    private void btnTrashExhibitorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTrashExhibitorActionPerformed
        // TODO add your handling code here:
        exhibitorTrashTable();
    }//GEN-LAST:event_btnTrashExhibitorActionPerformed

    private void btnRestoreBoothActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRestoreBoothActionPerformed
        // TODO add your handling code here:
        
    }//GEN-LAST:event_btnRestoreBoothActionPerformed

    private void btnDeleteToTrashExhibitorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteToTrashExhibitorActionPerformed
        // TODO add your handling code here:
        if(idSelectedExhibitor == 0){
             JOptionPane.showMessageDialog(rootPane, "Please select exhibitor row");
        }else{
            ExhibitorManage objExhibitorManage = new ExhibitorManage();
            objExhibitorManage.deleteToTrash(idSelectedExhibitor);
            idSelectedExhibitor = 0;
           exhibitorTable();
        }
    }//GEN-LAST:event_btnDeleteToTrashExhibitorActionPerformed

    private void btnAddNewProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddNewProductActionPerformed
        // TODO add your handling code here:
        AddBoothProduct objProduct = new AddBoothProduct(this, false, 0, "Add New Product");
        objProduct.setVisible(true);
    }//GEN-LAST:event_btnAddNewProductActionPerformed

    private void btnEditProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditProductActionPerformed
        // TODO add your handling code here:
        if(idSelectedProduct != 0){
            AddBoothProduct objProduct = new AddBoothProduct(this, false, idSelectedProduct, "Edit Product");
            idSelectedProduct = 0;
            objProduct.setVisible(true);
        }
        else{
            JOptionPane.showMessageDialog(rootPane, "Please select row");
        }
        
    }//GEN-LAST:event_btnEditProductActionPerformed

    private void tblProductMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblProductMouseClicked
        // TODO add your handling code here:
        int index = tblProduct.getSelectedRow();
        idSelectedProduct = Integer.parseInt(tblProduct.getValueAt(index, 0)+"");
    }//GEN-LAST:event_tblProductMouseClicked

    private void btnDeleteProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteProductActionPerformed
        // TODO add your handling code here:
        BoothProductManage objProductManage = new BoothProductManage();
        if(idSelectedProduct != 0){
            objProductManage.deleteById(idSelectedProduct);
            idSelectedProduct = 0;
            productTable();
        }
        else{
            JOptionPane.showMessageDialog(rootPane, "Please select row");
        }
    }//GEN-LAST:event_btnDeleteProductActionPerformed

    private void btnBlockProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBlockProductActionPerformed
        // TODO add your handling code here:
        BoothProductManage objProductManage = new BoothProductManage();
        if(idSelectedProduct != 0){
            objProductManage.block(idSelectedProduct);
            idSelectedProduct = 0;
            productTable();
        }
        else{
            JOptionPane.showMessageDialog(rootPane, "Please select row");
        }
    }//GEN-LAST:event_btnBlockProductActionPerformed

    private void btnUnblockProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnUnblockProductActionPerformed
        // TODO add your handling code here:
        BoothProductManage objProductManage = new BoothProductManage();
        if(idSelectedProduct != 0){
            objProductManage.unBlock(idSelectedProduct);
            idSelectedProduct = 0;
            productTable();
        }
        else{
            JOptionPane.showMessageDialog(rootPane, "Please select row");
        }
    }//GEN-LAST:event_btnUnblockProductActionPerformed

    private void btnEmptyTrashBoothActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEmptyTrashBoothActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnEmptyTrashBoothActionPerformed

    private void btlRefreshExhibitorTableActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btlRefreshExhibitorTableActionPerformed
        // TODO add your handling code here:
        exhibitorTable();
    }//GEN-LAST:event_btlRefreshExhibitorTableActionPerformed

    private void btnRefreshProductTableActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRefreshProductTableActionPerformed
        // TODO add your handling code here:
        productTable();
    }//GEN-LAST:event_btnRefreshProductTableActionPerformed

    private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSearchActionPerformed
        // TODO add your handling code here:
        productSearchTable();
    }//GEN-LAST:event_btnSearchActionPerformed

    private void cbbPagesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbbPagesActionPerformed
        // TODO add your handling code here:

//        loadPages(Integer.parseInt(cbbPages.getSelectedItem()+""), 1);
//        productTable();
    }//GEN-LAST:event_cbbPagesActionPerformed

    private void tbBoothMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tbBoothMouseClicked
        // TODO add your handling code here:
        int index=tbBooth.getSelectedRow();
        BoothInformation objBooth=BoothModel.Getvalue(index);
        BoothInformation boothInfor=null;
        if(evt.getClickCount()==2) {
            boothManager=new BoothManage();
            boothInfor= boothManager.GetBoothInformationByID(objBooth.getId());
            editform=new EditBooth(boothInfor, this, true);
            editform.setLocationRelativeTo(null);
            editform.setVisible(true);
        }
}//GEN-LAST:event_tbBoothMouseClicked

    private void jScrollPane3doubleClick(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jScrollPane3doubleClick
        // TODO add your handling code here:
        //        int index=tbBooth.getRowCount();
        //        BoothInformation objAdmin=BoothModel.Getvalue(index);
        //        BoothInformation boothInfor=null;
        //        if(evt.getClickCount()==2)
        //        {
        //               boothManager=new BoothManage();
        //               boothInfor= boothManager.GetBoothInformationByID(objAdmin.getId());
        //              // boothInfor
        //               editform=new EditBooth(boothInfor, this, true);
        //               editform.setVisible(true);
        //               boothManager.UpdateBooth(boothInfor);
        //        }
}//GEN-LAST:event_jScrollPane3doubleClick

    private void tbAccountManagerTableDoubleclick(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tbAccountManagerTableDoubleclick
        // TODO add your handling code here:
        if(evt.getClickCount()==2){
            int index=tbAccountManager.getSelectedRow();
            Administrator objAdmin=AdminModel.Getvalue(index);
            if(tbAccountManager.isRowSelected(index)) {
                objAdminManager=new AdminManage();
                EditAccount=new EditAccount(objAdmin, this, true);
                EditAccount.setLocationRelativeTo(null);
                EditAccount.setVisible(true);
            }
        }
}//GEN-LAST:event_tbAccountManagerTableDoubleclick

    private void btnEditAccountActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditAccountActionPerformed
        // TODO add your handling code here:
      if(tbAccountManager.getSelectedRow()!=-1){
            int index=tbAccountManager.getSelectedRow();
            Administrator objAdmin=AdminModel.Getvalue(index);
            if(tbAccountManager.isRowSelected(index))
              {
                   objAdminManager=new AdminManage();
                   EditAccount=new EditAccount(objAdmin, this, true);
                   EditAccount.setLocationRelativeTo(null);
                   EditAccount.setVisible(true);
              }
        }
      else
         JOptionPane.showMessageDialog(rootPane, "Please select a row");
 
    }//GEN-LAST:event_btnEditAccountActionPerformed

    private void btnDeleteAccountActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteAccountActionPerformed
        // TODO add your handling code here:
      if(tbAccountManager.getSelectedRow()!=-1){
        for(int i=0;i<tbAccountManager.getRowCount();i++)
         {
          if(tbAccountManager.isRowSelected(i))
          {
             try{
                 AdminManage BoothManager=new AdminManage();
                 int index=tbAccountManager.getSelectedRow();
                 Administrator objAdmin=AdminModel.Getvalue(index);
                 int id=objAdmin.getId();
                 BoothManager.DeleteAccount(id);
                 AccountTable();
             }catch(Exception e){
                 e.printStackTrace();
             }
           }

          }
       }
     else
          JOptionPane.showMessageDialog(rootPane, "Please select a row");

    }//GEN-LAST:event_btnDeleteAccountActionPerformed

    private void btnEditBoothActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditBoothActionPerformed
        // TODO add your handling code here:
     if(tbBooth.getSelectedRow()!=-1){
           int index=tbBooth.getSelectedRow();
           BoothInformation objBooth=BoothModel.Getvalue(index);
           if(tbBooth.isRowSelected(index))
            {
               editform=new EditBooth(objBooth, this, true);
               editform.setLocationRelativeTo(null);
               editform.setVisible(true);
             }
      }
    else
          JOptionPane.showMessageDialog(rootPane, "Please select a row");
    }//GEN-LAST:event_btnEditBoothActionPerformed

    private void btnDeleteBoothActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteBoothActionPerformed
        // TODO add your handling code here:
     if(tbBooth.getSelectedRow()!=-1){
        for(int i=0;i<tbBooth.getRowCount();i++)
         {
          if(tbBooth.isRowSelected(i))
          {
             try{
                 BoothManage BoothManager=new BoothManage();
                 int index=tbBooth.getSelectedRow();
                 BoothInformation objBooth=BoothModel.Getvalue(index);
                 int id=objBooth.getId();
                 BoothManager.DeleteBooth(id);
                 BoothTale();
             }catch(Exception e){
             }
          }

        }
     }
     else
       JOptionPane.showMessageDialog(rootPane, "Please select a row");     
    }//GEN-LAST:event_btnDeleteBoothActionPerformed

    private void SpaceMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SpaceMenuItemActionPerformed
        // TODO add your handling code here:
        AddSpaceUnitMeasure addSpace=new AddSpaceUnitMeasure(this, true);
        addSpace.setLocationRelativeTo(null);
        addSpace.setVisible(true);
    }//GEN-LAST:event_SpaceMenuItemActionPerformed

    private void SizeMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SizeMenuItemActionPerformed
        // TODO add your handling code here:
        AddSizeUnitMeasure AddSize=new AddSizeUnitMeasure(this, true);
        AddSize.setLocationRelativeTo(null);
        AddSize.setVisible(true);
    }//GEN-LAST:event_SizeMenuItemActionPerformed

    private void btnRefeshBoothActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRefeshBoothActionPerformed
        // TODO add your handling code here:
        BoothTale();
    }//GEN-LAST:event_btnRefeshBoothActionPerformed

    private void btnDeleteEmployeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteEmployeeActionPerformed
        // TODO add your handling code here:
     if(tbEmployee.getSelectedRow()!=-1){
       for(int i=0;i<tbEmployee.getRowCount();i++)
         {
          if(tbEmployee.isRowSelected(i))
           {
             try{
                 BoothEmployeeManage BoothEmpManager=new BoothEmployeeManage();
                 int index=tbEmployee.getSelectedRow();
                 BoothEmployee objBoothEmp=EmpTableModel.Getvalue(index);
                 int id=objBoothEmp.getId();
                 BoothEmpManager.DeleteBoothEmpoyee(id);
                 BoothEmployeeTable();
             }catch(Exception e){
             }
           }
         }
      }
     else
           JOptionPane.showMessageDialog(rootPane, "Please select a row");

        
    }//GEN-LAST:event_btnDeleteEmployeeActionPerformed

    private void btnEditEmployeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditEmployeeActionPerformed
        // TODO add your handling code here:
      if(tbEmployee.getSelectedRow()!=-1){
        int index=tbEmployee.getSelectedRow();
        BoothEmployee objBoothEmp=EmpTableModel.Getvalue(index);
         if(tbEmployee.isRowSelected(index))
          {
               editBoothEmp=new EditBoothEmployee(objBoothEmp, this, true);
               editBoothEmp.setLocationRelativeTo(null);
               editBoothEmp.setVisible(true);
          }
        }
   else
        JOptionPane.showMessageDialog(rootPane, "Please select a row");
    }//GEN-LAST:event_btnEditEmployeeActionPerformed

    private void btnAddNewEmployeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddNewEmployeeActionPerformed
        // TODO add your handling code here:
        AddEmployee addEmp=new AddEmployee(this, true);
        addEmp.setLocationRelativeTo(this);
        addEmp.setVisible(true);
    }//GEN-LAST:event_btnAddNewEmployeeActionPerformed

    private void employeeManageComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_employeeManageComponentShown
        // TODO add your handling code here:
        jToolBar1.removeAll();
        jToolBar1.setSize(0, 0);
        jToolBar1.setSize(457, 84);
        //if(usetType.equalsIgnoreCase("Administrator")){
            jToolBar1.add(btnAddNewEmployee);
            jToolBar1.add(btnEditEmployee);
            //jToolBar1.add(btnBlockAccount);
           // jToolBar1.add(btnUnblockAccount);
            jToolBar1.add(btnDeleteEmployee);
            //jToolBar1.add(btnTrashAccount);
            //jToolBar1.add(btnRestoreAccount);
            //jToolBar1.add(btnEmptyTrashAccount);
            BoothEmployeeTable();
      //  }
    }//GEN-LAST:event_employeeManageComponentShown
 private void SearchBooth()
 {
         BoothManage boothM=new BoothManage();
         BoothModel=new BoothTableModel(boothM.SearchBooth(txtSearchBooth.getText()));
          tbBooth.setModel(BoothModel);
       // }
       //elseif(
         // if(BoothModel==null)
          // JOptionPane.showMessageDialog(rootPane, "There is not booth");
 }
 private void SearchEmployee()
  {
         BoothEmployeeManage boothEmpManage=new BoothEmployeeManage();
         BoothEmployeeModel=new BoothEmployeeTableModel(boothEmpManage.SearchBoothEmployee(txtSerachEmployee.getText()));
       //if(BoothEmployeeModel!=null){
          tbEmployee.setModel(BoothEmployeeModel);
       // }
       //else
          // JOptionPane.showMessageDialog(rootPane, "There is not employee in this Booth");
  }
    private void btnSearchBoothActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSearchBoothActionPerformed
        // TODO add your handling code here:
        if(txtSearchBooth.getText().length()==0)
        {
           JOptionPane.showMessageDialog(rootPane, "The Search field is not Blank !");
           txtSearchBooth.requestFocusInWindow();
           return;
        }
        SearchBooth();

    }//GEN-LAST:event_btnSearchBoothActionPerformed

    private void btnSearchEmployeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSearchEmployeeActionPerformed
        // TODO add your handling code here:
        if(txtSerachEmployee.getText().length()==0)
        {
            JOptionPane.showMessageDialog(rootPane, "The Search field is not Blank !");
            txtSearchBooth.requestFocusInWindow();
            return;
        }
        SearchEmployee();

    }//GEN-LAST:event_btnSearchEmployeeActionPerformed

    private void btnAddNewExpoInfoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddNewExpoInfoActionPerformed
        // TODO add your handling code here:
      

    }//GEN-LAST:event_btnAddNewExpoInfoActionPerformed

    private void BtnRefreshEmployeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnRefreshEmployeeActionPerformed
        // TODO add your handling code here:
        BoothEmployeeTable();
    }//GEN-LAST:event_BtnRefreshEmployeeActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        AccountTable();
    }//GEN-LAST:event_jButton1ActionPerformed

    private void btnViewProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnViewProductActionPerformed
        // TODO add your handling code here:
          BoothManage boothM=new BoothManage();
        if(tbBooth.getSelectedRow()!=-1)
        {
            int index=tbBooth.getSelectedRow();
            BoothInformation objBoothInfor=BoothModel.Getvalue(index);
            productModel=new ProductTableModel(boothM.GetBoothProduct(objBoothInfor.getId()));
            tbViewProduct.setModel(productModel);
        }
      else
          JOptionPane.showMessageDialog(rootPane, "Please select a row");
    }//GEN-LAST:event_btnViewProductActionPerformed

    private void btnViewEmployeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnViewEmployeeActionPerformed
        // TODO add your handling code here:
        BoothManage boothM=new BoothManage();
       if(tbBooth.getSelectedRow()!=-1)
        {
            int index=tbBooth.getSelectedRow();
            BoothInformation objBoothInfor=BoothModel.Getvalue(index);
            BoothEmployeeModel=new BoothEmployeeTableModel(boothM.GetBoothEmployee(objBoothInfor.getId()));
            tbViewProduct.setModel(BoothEmployeeModel);
        }
       else
           JOptionPane.showMessageDialog(rootPane, "Please select a row");
    }//GEN-LAST:event_btnViewEmployeeActionPerformed

    /**
    * @param args the command line arguments
    */
   /* public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MainApplication().setVisible(true);
            }
        });
    }*/

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTabbedPane AccountManageTabbedPane;
    private javax.swing.JButton BtnRefreshEmployee;
    private javax.swing.JMenuItem SizeMenuItem;
    private javax.swing.JMenuItem SpaceMenuItem;
    private javax.swing.JMenuItem WeightMenuItem;
    private javax.swing.JMenuItem aboutMenuItem;
    private javax.swing.JTabbedPane accountingReportTabbedPane;
    private javax.swing.JTabbedPane boothManageTabbedPane;
    private javax.swing.JToolBar botToolBar1;
    private javax.swing.JToolBar botToolBar2;
    private javax.swing.JButton btlRefreshExhibitorTable;
    private javax.swing.JButton btnAddNewAccount;
    private javax.swing.JButton btnAddNewBooth;
    private javax.swing.JButton btnAddNewEmployee;
    private javax.swing.JButton btnAddNewExhibitor;
    private javax.swing.JButton btnAddNewExpoInfo;
    private javax.swing.JButton btnAddNewProduct;
    private javax.swing.JButton btnBlockAccount;
    private javax.swing.JButton btnBlockBooth;
    private javax.swing.JButton btnBlockExhibitor;
    private javax.swing.JButton btnBlockExpoInfo;
    private javax.swing.JButton btnBlockProduct;
    private javax.swing.JButton btnDeleteAccount;
    private javax.swing.JButton btnDeleteBooth;
    private javax.swing.JButton btnDeleteEmployee;
    private javax.swing.JButton btnDeleteExhibitor;
    private javax.swing.JButton btnDeleteExpoInfo;
    private javax.swing.JButton btnDeleteProduct;
    private javax.swing.JButton btnDeleteToTrashExhibitor;
    private javax.swing.JButton btnEditAccount;
    private javax.swing.JButton btnEditBooth;
    private javax.swing.JButton btnEditEmployee;
    private javax.swing.JButton btnEditExhibitor;
    private javax.swing.JButton btnEditExpoInfo;
    private javax.swing.JButton btnEditProduct;
    private javax.swing.JButton btnEmptyTrashAccount;
    private javax.swing.JButton btnEmptyTrashBooth;
    private javax.swing.JButton btnEmptyTrashExpoInfo;
    private javax.swing.JButton btnEmptyTrashProduct;
    private javax.swing.JButton btnPreview;
    private javax.swing.JButton btnPrint;
    private javax.swing.JButton btnRefeshBooth;
    private javax.swing.JButton btnRefreshProductTable;
    private javax.swing.JButton btnRestoreAccount;
    private javax.swing.JButton btnRestoreBooth;
    private javax.swing.JButton btnRestoreExhibitor;
    private javax.swing.JButton btnRestoreExpoInfo;
    private javax.swing.JButton btnRestoreProduct;
    private javax.swing.JButton btnSearch;
    private javax.swing.JButton btnSearchBooth;
    private javax.swing.JButton btnSearchEmployee;
    private javax.swing.JButton btnTrashAccount;
    private javax.swing.JButton btnTrashBooth;
    private javax.swing.JButton btnTrashExhibitor;
    private javax.swing.JButton btnTrashExpoInfo;
    private javax.swing.JButton btnTrashProduct;
    private javax.swing.JButton btnUnblockAccount;
    private javax.swing.JButton btnUnblockBooth;
    private javax.swing.JButton btnUnblockExhibitor;
    private javax.swing.JButton btnUnblockExpoInfo;
    private javax.swing.JButton btnUnblockProduct;
    private javax.swing.JButton btnViewEmployee;
    private javax.swing.JButton btnViewProduct;
    private javax.swing.JComboBox cbbPages;
    private javax.swing.JTabbedPane desktopTabbedPane;
    private javax.swing.JTabbedPane employeeManage;
    private javax.swing.JTabbedPane exhibitorManageTabbedPane;
    private javax.swing.JMenuItem exitMenuItem;
    private javax.swing.JTabbedPane expoInfomationTabbedPane;
    private javax.swing.JMenu helpMenu;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JPopupMenu.Separator jSeparator3;
    private javax.swing.JPopupMenu.Separator jSeparator4;
    private javax.swing.JPopupMenu.Separator jSeparator5;
    private javax.swing.JPopupMenu.Separator jSeparator6;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JMenu languageMenu;
    private javax.swing.JMenu lblCategoryProduct;
    private javax.swing.JLabel lblLastTimelogin;
    private javax.swing.JLabel lblPA;
    private javax.swing.JLabel lblPages;
    private javax.swing.JLabel lblSeparator;
    private javax.swing.JLabel lblSeparatorH;
    private javax.swing.JLabel lblSeparatorH1;
    private javax.swing.JLabel lblSeparatorH2;
    private javax.swing.JLabel lblSeparatorH3;
    private javax.swing.JLabel lblaccountLogin;
    private javax.swing.JMenuItem logOffMenuItem;
    private javax.swing.JMenuItem manageGuideMenuItem;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JTabbedPane productManageTabbedPane;
    private javax.swing.JMenu systemMenu;
    private javax.swing.JPanel taskbarPanel;
    private javax.swing.JTabbedPane taskbarTabbedPane;
    private javax.swing.JTable tbAccountManager;
    private javax.swing.JTable tbBooth;
    private javax.swing.JTable tbEmployee;
    private javax.swing.JTable tbViewProduct;
    private javax.swing.JTable tblExhibitor;
    private javax.swing.JTable tblProduct;
    private javax.swing.JPanel toolbarPanel;
    private javax.swing.JTextField txtProductSearch;
    private javax.swing.JTextField txtSearchBooth;
    private javax.swing.JTextField txtSerachEmployee;
    private javax.swing.JMenu unitMeasureMenu;
    private javax.swing.JMenuItem usaMenuItem;
    private javax.swing.JMenuItem vnMenuItem;
    // End of variables declaration//GEN-END:variables
    private ExhibitorTableModel exhibitorTableModel;
    private ProductTableModel productTableModel;
    private int idSelectedExhibitor;
    private int idSelectedProduct;
    private String nameSelectedExhibitor;
    private int pages;
    private int numberShow;
    private int numberStart;
    private int numberEnd;
    private BoothTableModel BoothModel;
    private AdminTableModel AdminModel;
    private BoothManage boothManager;
    private EditBooth editform;
    private AdminManage objAdminManager;
    private EditAccount EditAccount;
    private BoothEmployeeTableModel EmpTableModel;
    private EditBoothEmployee editBoothEmp;
    private ProductTableModel productModel;
    private BoothEmployeeTableModel BoothEmployeeModel;
}
